home *** CD-ROM | disk | FTP | other *** search
- Path: li.net!jeremy
- From: jeremy@newshost.li.net (Jeremy Markman)
- Newsgroups: comp.lang.c
- Subject: Re: printf problems..
- Date: 18 Apr 1996 19:15:17 GMT
- Organization: LI Net (Long Island Network)
- Message-ID: <4l64c5$av@linet06.li.net>
- References: <4l1ubi$c3p@news.ysu.edu> <4l2ohl$t54@news1.mnsinc.com>
- NNTP-Posting-Host: linet04.li.net
- X-Newsreader: TIN [version 1.2 PL2]
-
- : : I want it to output '02.11' not '2.11'
-
- : : I tried something like printf(temp, "%O2.2f", myvar)
-
- I don't know if this is just a type here or if you really programmed it
- this way, but make sure you use the zero (0) instead of the letter O, as
- you did above...
-